#!/usr/bin/env python
# coding=utf-8

from vavava import pyinstaller_helper

def importAny(name):
    try:
        return __import__(name,fromlist=[''])
    except:
        try:
            i = name.rfind('.')
            mod = __import__(name[:i],fromlist=[''])
            return getattr(mod,name[i+1:])
        except:
            raise RuntimeError('No module of: %s found'%(name))


root_package = 'vavava.httpclient'
class_name   = "HttpClient"


pa = importAny("vavava.httpclient.HttpClient")
pa  = __import__(name=class_name,globals=globals(),locals=locals(),fromlist=[root_package])
HttpCLient = getattr(pa,class_name)

hiddenimports  = [root_package]
pyinstaller_helper.pack (
    scripts        = ['test.py'],
    import_base    = "",
    hiddenimports  = hiddenimports,
    hookspath      = [],
    name           = "test",
    out_path       = '../../pyinstaller_output/test',
    force          = True,
    datas          = []
)
